public JPanel Rut() {
		JPanel left = new JPanel(new GridLayout(3, 1, 5, 10));
		left.setBorder(BorderFactory.createEmptyBorder(50, 5, 50, 15));
		left.add(Mottram);
		Mottram.addActionListener(this);
		left.add(Haitram);
		Haitram.addActionListener(this);
		left.add(Namtram);
		Namtram.addActionListener(this);
		left.setBackground(SystemColor.controlHighlight);
		JPanel right = new JPanel(new GridLayout(3, 1, 5, 10));
		right.setBorder(BorderFactory.createEmptyBorder(50, 5, 50, 15));
		right.add(Mottrieu);
		Mottrieu.addActionListener(this);
		right.add(Sokhac);
		Sokhac.addActionListener(this);
		right.add(Huy);
		Huy.addActionListener(this);
		right.setBackground(SystemColor.controlHighlight);
		JPanel head = new JPanel();
		head.add(LName2);
		LName2.setFont(new Font("Courie", Font.ITALIC, 20));
		head.setBackground(SystemColor.controlHighlight);
		JPanel foot = new JPanel();
		JPanel m = new JPanel(new BorderLayout());
		m.add(head, "North");
		m.add(left, "West");
		m.add(right, "East");
		m.add(foot, "South");
		m.setBackground(SystemColor.controlHighlight);
		return m;
	}

	// panel nap tien

	public JPanel Nap() {
		JPanel left = new JPanel(new GridLayout(3, 1, 5, 10));
		left.setBorder(BorderFactory.createEmptyBorder(50, 5, 50, 15));
		left.add(napMottram);
		napMottram.addActionListener(this);
		left.add(napHaitram);
		napHaitram.addActionListener(this);
		left.add(napNamtram);
		napNamtram.addActionListener(this);
		left.setBackground(SystemColor.controlHighlight);
		JPanel right = new JPanel(new GridLayout(3, 1, 5, 10));
		right.setBorder(BorderFactory.createEmptyBorder(50, 5, 50, 15));
		right.add(napMottrieu);
		napMottrieu.addActionListener(this);
		right.add(napSokhac);
		napSokhac.addActionListener(this);
		right.add(Huynap);
		Huynap.addActionListener(this);
		right.setBackground(SystemColor.controlHighlight);
		JPanel head = new JPanel();
		head.add(LName2nap);
		LName2nap.setFont(new Font("Courie", Font.ITALIC, 20));
		head.setBackground(SystemColor.controlHighlight);
		JPanel foot = new JPanel();
		JPanel mai = new JPanel(new BorderLayout());
		mai.add(head, "North");
		mai.add(left, "West");
		mai.add(right, "East");
		mai.add(foot, "South");
		mai.setBackground(SystemColor.controlHighlight);
		return mai;
	}

	// panel rut tien so khac

	public JPanel SoKhac() {
		JPanel head = new JPanel(new GridLayout(2, 1, 5, 10));
		LName3.setFont(new Font("Courie", Font.ITALIC, 20));
		head.add(LName3);
		head.add(dieukien);
		head.setBackground(SystemColor.controlHighlight);
		JPanel left = new JPanel();
		left.add(tbruttien);
		left.add(txtSotien);
		left.setBorder(BorderFactory.createEmptyBorder(30, 5, 50, 15));
		left.setBackground(SystemColor.controlHighlight);
		JPanel foot = new JPanel();
		foot.add(Rut);
		Rut.addActionListener(this);
		foot.add(Huy2);
		Huy2.addActionListener(this);
		foot.setBorder(BorderFactory.createEmptyBorder(30, 5, 50, 15));
		foot.setBackground(SystemColor.controlHighlight);
		JPanel main = new JPanel(new BorderLayout());
		main.add(head, "North");
		main.add(left, "West");
		main.add(foot, "South");
		main.setBackground(SystemColor.controlHighlight);
		return main;
	}

	// panel nap tien so khac

	public JPanel SoKhacNap() {
		JPanel head = new JPanel(new GridLayout(2, 1, 5, 10));
		LName3nap.setFont(new Font("Courie", Font.ITALIC, 20));
		head.add(LName3nap);
		head.add(dieukiennap);
		head.setBackground(SystemColor.controlHighlight);
		JPanel left = new JPanel();
		left.add(tbnaptien);
		left.add(txtSotiennap);
		left.setBorder(BorderFactory.createEmptyBorder(30, 5, 50, 15));
		left.setBackground(SystemColor.controlHighlight);
		JPanel foot = new JPanel();
		foot.add(Nap);
		Nap.addActionListener(this);
		foot.add(Huy2nap);
		Huy2nap.addActionListener(this);
		foot.setBorder(BorderFactory.createEmptyBorder(30, 5, 50, 15));
		foot.setBackground(SystemColor.controlHighlight);
		JPanel main = new JPanel(new BorderLayout());
		main.add(head, "North");
		main.add(left, "West");
		main.add(foot, "South");
		main.setBackground(SystemColor.controlHighlight);
		return main;
	}

	// panel thong bao sau khi rut tien

	public JPanel ThongBao() {
		JPanel p1 = new JPanel();
		p1.add(thongbao);
		thongbao.setFont(new Font("Courie", Font.ITALIC, 20));
		p1.setBackground(SystemColor.controlHighlight);
		JPanel p2 = new JPanel(new GridLayout(5, 2, 5, 10));
		p2.add(strut);// ,JLabel.RIGHT
		p2.add(l2);
		p2.add(sdutte);// ,JLabel.RIGHT
		p2.add(l3);
		p2.add(sduchophep);// ,JLabel.RIGHT
		p2.add(l4);
		p2.setBackground(SystemColor.controlHighlight);
		JPanel p3 = new JPanel(new GridLayout(2, 1, 5, 10));
		p3.add(Hoi, JLabel.CENTER);
		p3.setBackground(SystemColor.controlHighlight);
		JPanel p4 = new JPanel();
		p4.add(Co);
		Co.addActionListener(this);
		p4.add(Khong);
		Khong.addActionListener(this);
		p3.add(p4);
		p4.setBackground(SystemColor.controlHighlight);
		JPanel p5 = new JPanel();
		p5.setBackground(SystemColor.controlHighlight);
		JPanel main = new JPanel(new BorderLayout());
		Dimension d = new Dimension(50, 50);
		p2.setMaximumSize(d);
		main.add(p1, "North");
		main.add(p5, "East");
		main.add(p3, "South");
		main.add(p2, "Center");
		main.setBackground(SystemColor.controlHighlight);
		return (main);
	}

	// panel thong bao sau khi nop tien

	public JPanel ThongBaoNap() {
		JPanel p11 = new JPanel();
		p11.add(thongbaonap);
		p11.setBackground(SystemColor.controlHighlight);
		thongbaonap.setFont(new Font("Courie", Font.ITALIC, 20));
		JPanel p22 = new JPanel(new GridLayout(5, 2, 5, 10));
		p22.add(stnap);// ,JLabel.RIGHT
		p22.add(l2nap);
		p22.add(sduttenap);// ,JLabel.RIGHT
		p22.add(l3nap);
		p22.add(sduchophepnap);// ,JLabel.RIGHT
		p22.add(l4nap);
		p22.setBackground(SystemColor.controlHighlight);
		JPanel p32 = new JPanel(new GridLayout(2, 1, 5, 10));
		p32.add(Hoinap, JLabel.CENTER);
		p32.setBackground(SystemColor.controlHighlight);
		JPanel p42 = new JPanel();
		p42.add(Conap);
		Conap.addActionListener(this);
		p42.add(Khongnap);
		p42.setBackground(SystemColor.controlHighlight);
		Khongnap.addActionListener(this);
		p32.add(p42);
		JPanel p52 = new JPanel();
		JPanel main = new JPanel(new BorderLayout());
		Dimension d = new Dimension(50, 50);// tao ra doi tuong de thay doi kich
											// thuot cua component
		p22.setMaximumSize(d);
		main.add(p11, "North");
		main.add(p52, "East");
		main.add(p32, "South");
		main.add(p22, "Center");
		main.setBackground(SystemColor.controlHighlight);
		return (main);
	}

	// panel chuyen khoan

	public JPanel Chuyenkhoan() {
		JPanel head = new JPanel();
		head.add(label, JLabel.CENTER);
		head.setBackground(SystemColor.controlHighlight);
		label.setFont(new Font("Courie", Font.BOLD, 20));
		JPanel body = new JPanel(new GridLayout(3, 3, 5, 5));
		body.setBorder(BorderFactory.createEmptyBorder(70, 5, 70, 15));
		body.add(tknhan);
		body.add(Sotkhoan);
		body.add(sotien);
		body.add(Stien);
		body.setBackground(SystemColor.controlHighlight);
		JPanel foot = new JPanel();
		foot.add(Thuchien);
		Thuchien.addActionListener(this);
		foot.add(Huy1);
		Huy1.addActionListener(this);
		foot.setBackground(SystemColor.controlHighlight);
		JPanel ck = new JPanel(new BorderLayout());
		ck.add(head, "North");
		ck.add(foot, "South");
		ck.add(body, "Center");
		ck.setBackground(SystemColor.controlHighlight);
		return ck;

	}

	// panel thong bao sau khi chuyen khoan

	public JPanel ThongBao1() {
		JPanel p1 = new JPanel();
		p1.add(thongbao1);
		thongbao1.setFont(new Font("Courie", Font.ITALIC, 20));
		p1.setBackground(SystemColor.controlHighlight);
		JPanel p2 = new JPanel(new GridLayout(5, 2, 5, 10));
		p2.add(taikhoan1, JLabel.CENTER);// ,JLabel.RIGHT
		p2.add(l5);
		p2.add(taikhoan2);
		p2.add(l6);
		p2.add(strut1);
		p2.add(l7);
		p2.add(sdutte1);
		p2.add(l8);
		p2.add(sduchophep1);
		p2.add(l9);
		p2.setBackground(SystemColor.controlHighlight);
		JPanel p3 = new JPanel(new GridLayout(2, 1, 5, 10));
		p3.add(Hoi1, JLabel.CENTER);
		JPanel p4 = new JPanel();
		p4.add(Co1);
		Co1.addActionListener(this);
		p4.add(Khong1);
		Khong1.addActionListener(this);
		p3.add(p4);
		JPanel main = new JPanel(new BorderLayout());
		Dimension d = new Dimension(50, 50);
		p2.setMaximumSize(d);
		main.add(p1, "North");
		main.add(p3, "South");
		main.add(p2, "Center");
		main.setBackground(SystemColor.controlHighlight);
		p3.setBackground(SystemColor.controlHighlight);
		p4.setBackground(SystemColor.controlHighlight);
		return (main);
	}

	// <------------------------------------------------------------------------------------>
	public Client() {
		connect();
		add(chonngonngu());

	}

	private static JPanel createLogoPane() {
		JPanel logoPane = new JPanel(new BorderLayout());
		logoPane.setBackground(new Color(255, 255, 255));
		logoPane.add(new JLabel(new ImageIcon("Data/donga.png")));
		return logoPane;
	}